# @shuaige : 陈世玉
# @name :编解码.py
# @time :2024/9/19 下午10:11
import urllib.request
import urllib.parse
url = "https://www.baidu.com/s?wd="
headers={

    "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36"
}

data = urllib.parse.quote("周杰伦")
url+=data
request= urllib.request.Request(url=url,headers=headers)
responce = urllib.request.urlopen(request)
html = responce.read().decode("UTF-8")
print(url)
# print(html)
